package com.xydzxt.www.service;

import com.xydzxt.www.dao.MajorDao;
import com.xydzxt.www.dao.PayDao;
import com.xydzxt.www.model.Major;
import com.xydzxt.www.model.Pay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayService {
    @Autowired
    PayDao payDao;

    public List<Pay> selectAllPay(Pay pay){
        return payDao.selectAllPay(pay);
    }

    public Pay selectBuRegistId(int registId){
        return payDao.selectBuRegistId(registId);
    }
    public boolean insert(Pay pay){
        return payDao.insert(pay);
    }
}
